﻿@using OA.Model;
@using OA.Model.View;
@using X.PagedList;
@using OA.Core.Helper;
@using OA.Core.Model;

@model PagedList<EmployeeTestPaperView>
@{
    string title = "我的试卷";
    ViewBag.Title = title;
    Layout = "~/Areas/Member/Views/Shared/_Layout.cshtml";

}
<div class="layui-tab layui-tab-brief" lay-filter="user">
    <div class="layui-form layui-tab-content" id="LAY_ucm">
        <form action="" class="layui-form">
            <div class="layui-inline">
                <div class="layui-input-inline">
                    <input type="text" name="keyWord" class="layui-input" value="@ViewBag.Keyword" placeholder="请输入主题关键字搜索">
                </div>
            </div>
            <div class="layui-inline">
                <button type="button" class="layui-btn searchButton">搜索</button>
            </div>
        </form>
    </div>
    <table class="layui-table" lay-data="{url:'GetData', cellMinWidth: 80, page: true,limit:15}" id="resultList" lay-filter="resultList">
        <thead>
            <tr>
                <th lay-data="{field:'Title', width:240}">主题</th>
                <th lay-data="{field:'StartTime', width:180}">开始时间</th>
                <th lay-data="{field:'EndTime', width:180}">结束时间</th>
                <th lay-data="{field:'StatusName', width:80}">状态</th>
                <th lay-data="{field:'FillingDate', width:180}">考试时间</th>
                <th lay-data="{field:'TotalScore', width:80}">总分</th>
                <th lay-data="{field:'Score', width:80}">得分</th>
                <th lay-data="{width:120, align:'center', toolbar: '#barDemo'}">操作</th>

            </tr>
        </thead>
    </table>
    <script type="text/html" id="barDemo">
        {{# if(d.Status==0){ }}
        <a class="layui-btn layui-btn-xs" href="javascript:ShowPage('/Member/TestPaper/Write/{{d.ID}}','开始考试')">开始考试</a>         
        {{# } }}
        {{# if(d.Status==1){ }}
        <a class="layui-btn layui-btn-xs" href="javascript:ShowPage('/Member/TestPaper/Show/{{d.ID}}','查看试卷')">查看</a>
        {{# } }}
    </script>   
</div>
 